<?php

namespace Condistelec\MainBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * PartidaSerie
 *
 * @ORM\Table(name="partida_x_serie", uniqueConstraints={@ORM\UniqueConstraint(name="NewIndex1", columns={"id_partida", "id_serie"})}, indexes={@ORM\Index(name="FK_partida_x_serie_serie", columns={"id_serie"}), @ORM\Index(name="IDX_4775FC2D775CF17C", columns={"id_partida"})})
 * @ORM\Entity
 */
class PartidaSerie
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id_par_ser", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $idParSer;

    /**
     * @var \Serie
     *
     * @ORM\ManyToOne(targetEntity="Serie")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="id_serie", referencedColumnName="id_serie")
     * })
     */
    private $serie;

    /**
     * @var \Partida
     *
     * @ORM\ManyToOne(targetEntity="Partida")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="id_partida", referencedColumnName="id_partida")
     * })
     */
    private $partida;



    /**
     * Get idParSer
     *
     * @return integer 
     */
    public function getIdParSer()
    {
        return $this->idParSer;
    }

    /**
     * Set serie
     *
     * @param \Condistelec\MainBundle\Entity\Serie $serie
     * @return PartidaXSerie
     */
    public function setSerie(\Condistelec\MainBundle\Entity\Serie $serie = null)
    {
        $this->serie = $serie;

        return $this;
    }

    /**
     * Get serie
     *
     * @return \Condistelec\MainBundle\Entity\Serie 
     */
    public function getSerie()
    {
        return $this->serie;
    }

    /**
     * Set partida
     *
     * @param \Condistelec\MainBundle\Entity\Partida $partida
     * @return PartidaXSerie
     */
    public function setPartida(\Condistelec\MainBundle\Entity\Partida $partida = null)
    {
        $this->partida = $partida;

        return $this;
    }

    /**
     * Get partida
     *
     * @return \Condistelec\MainBundle\Entity\Partida 
     */
    public function getPartida()
    {
        return $this->partida;
    }
}
